package com.schpro.webexperiment.model;

import com.schpro.webexperiment.dataobject.WxBelong;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * TODO
 *
 * @author lss
 * @date 2019-02-27, Wed
 */
@Getter
@Setter
public class Belong extends BaseModel {

  /**
   * 描述
   */
  private String description;

  /**
   * example 知识类-社会工程类
   */
  private List<Type> children;

  public Belong(WxBelong wxBelong) {
    this.setLevel(BaseModel.LEVEL_BELONG);
    BeanUtils.copyProperties(wxBelong, this);
  }

  public Belong() {
    this.setLevel(BaseModel.LEVEL_BELONG);
  }
}
